﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ACP.Data;
using ACP.DTO;

namespace ACP.Business
{
    public class TempExamLogic
    {
        public static void InsertQuestionAnswer(tempexam tempExam)
        {
            TempExamRepository.InsertQuestionAnswer(tempExam);
        }

        public static void UpdatetAnswer(tempexam tempexamObject)
        {
            TempExamRepository.UpdatetAnswer(tempexamObject);
        }

        public static tempexam GettempexamById(int testId, int questionId)
        {
            return TempExamRepository.GettempexamById(testId, questionId);
        }

        public static List<tempexam> GetExamQuestionAndAnswersByTestId(int testId)
        {
            return TempExamRepository.GetExamQuestionAndAnswersByTestId(testId);
        }
        public static void InsertUnAnsweredQuestions(List<tempexam> lstTempExams)
        {
            TempExamRepository.InsertUnAnsweredQuestions(lstTempExams);
        }
    }
}
